package models

type DataCompareTemplate struct {
	ID         string `gorm:"primaryKey;column:id;type:varchar(20);not null" json:"id"`
	MerchantID string `gorm:"column:merchant_id;type:bigint;not null;default:0;comment:商户ID" json:"merchant_id"`
	UserID     string `gorm:"column:user_id;type:bigint;not null;default:0;comment:用户ID" json:"user_id"`
	Name       string `gorm:"column:name;type:varchar(50);not null;default:'';comment:模板名称" json:"name"`
	Content    string `gorm:"column:content;type:text;not null;comment:模板内容" json:"content" json_old:"Content"`
	CreatedAt  int64  `gorm:"column:created_at;autoCreateTime;type:int;size:64;comment:创建时间" json:"created_at"`
	UpdatedAt  int64  `gorm:"column:updated_at;autoUpdateTime;type:int;size:64;comment:更新时间" json:"updated_at"`
	DeletedAt  int64  `gorm:"column:deleted_at;type:int;size:64;default:0;comment:删除时间" json:"deleted_at"`
}

func (m DataCompareTemplate) TableName() string {
	return "data_compare_template"
}

// 模式自动注册
func init() {
	Models = append(Models, &DataCompareTemplate{})
}
